import {productInfo} from './env.config'
const pn = localStorage.getItem('pn') || 'ayr'
const filingsMap: Record<string, string> = productInfo[pn].icp

export const icpConfig = (() => {
  const item = Object.keys(filingsMap).find(item => location.host.includes(item))
  if (!item) return filingsMap[productInfo[pn].icpDefault || '']
  return filingsMap[item]
})()
